package cc.mrbird.febs.power.service.impl;

import cc.mrbird.febs.power.entity.RoleBindAppInfo;
import cc.mrbird.febs.power.dao.RoleBindAppInfoMapper;
import cc.mrbird.febs.power.service.IRoleBindAppInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MrBird
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RoleBindAppInfoServiceImpl extends ServiceImpl<RoleBindAppInfoMapper, RoleBindAppInfo> implements IRoleBindAppInfoService {

    private final RoleBindAppInfoMapper roleBindAppInfoMapper;

    @Override
    public List<Map> getRoleInfoByAppId(Integer roleId) {
        return roleBindAppInfoMapper.getRoleInfoByAppId(roleId);
    }
}
